#include "comm.hpp"

int main()
{
    struct msgbuffer sendbuf, recvbuf;

    // for (;;)
    // {
    memset(recvbuf.body, 0, strlen(recvbuf.body));
    msgrcv(msg.Getid(), &recvbuf, sizeof(recvbuf.body), 1, 0);
    std::cout << "消息接收成功: " << recvbuf.body << std::endl;
    // }

    return 0;
}